#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QTcpServer>
#include <QObject>
#include "tcpclientsocket.h"

class TcpServer : public QTcpServer
{
    Q_OBJECT

public:
    TcpServer(QObject *parent = nullptr, int port = 0);
    QList<TcpClientSocket *> tcpClientSocketList;

signals:
    void updateServer(QString, int);

public slots:
    void updateClients(QString, int);
    void onDisconnected(qintptr);

protected:
    void incomingConnection(qintptr socketDescriptor);
};

#endif // TCPSERVER_H
